package com.hbt.myplus.model;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author astupidcoder
 * @since 2020-12-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Reg extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(exist = false)
    private List<Img> reportList;

    @TableField(exist = false)
    private Pet pet;

    private String status;

    @Override
    public String toString() {
        return "Reg{" +
                "id=" + id +
                ", reportList=" + reportList +
                ", pet=" + pet +
                ", status='" + status + '\'' +
                ", petId=" + petId +
                ", regNo='" + regNo + '\'' +
                ", createTime=" + createTime +
                ", payTime=" + payTime +
                ", sectionId=" + sectionId +
                ", serviceId=" + serviceId +
                ", money=" + money +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", deleteFlag=" + deleteFlag +
                ", treatSug='" + treatSug + '\'' +
                ", traceList=" + traceList +
                ", drugList=" + drugList +
                ", doctor=" + doctor +
                ", section=" + section +
                ", petOwnId='" + petOwnId + '\'' +
                ", isPay=" + isPay +
                ", isTreat=" + isTreat +
                ", doctorId=" + doctorId +
                '}';
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Pet getPet() {
        return pet;
    }

    public void setPet(Pet pet) {
        this.pet = pet;
    }

    public List<Img> getReportList() {
        return reportList;
    }

    public void setReportList(List<Img> reportList) {
        this.reportList = reportList;
    }

    private Integer petId;

    private String regNo;

    public static String REPORT = "report";

    public List<Trace> getTraceList() {
        return traceList;
    }

    public void setTraceList(List<Trace> traceList) {
        this.traceList = traceList;
    }

    private Date createTime;

    private Date payTime;

    private Integer sectionId;

    private Integer serviceId;

    private BigDecimal money;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    private Date endTime;

    private Integer deleteFlag;

    private String treatSug;
    @TableField(exist = false)

    private List<Trace> traceList;

    public List<Drug> getDrugList() {
        return drugList;
    }

    public void setDrugList(List<Drug> drugList) {
        this.drugList = drugList;
    }

    @TableField(exist = false)
    private List<Drug> drugList;

    public String getTreatSug() {
        return treatSug;
    }

    public void setTreatSug(String treatSug) {
        this.treatSug = treatSug;
    }

    @TableField(exist = false)
    private Doctor doctor;

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    @TableField(exist = false)
    private Section section;

    public Section getSection() {
        return section;
    }

    public void setSection(Section section) {
        this.section = section;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRegNo() {
        return regNo;
    }

    public void setRegNo(String regNo) {
        this.regNo = regNo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }


    public Integer getIsPay() {
        return isPay;
    }

    public void setIsPay(Integer isPay) {
        this.isPay = isPay;
    }

    public Integer getIsTreat() {
        return isTreat;
    }

    public void setIsTreat(Integer isTreat) {
        this.isTreat = isTreat;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    private String petOwnId;

    public Integer getSectionId() {
        return sectionId;
    }

    public void setSectionId(Integer sectionId) {
        this.sectionId = sectionId;
    }

    public String getPetOwnId() {
        return petOwnId;
    }

    public void setPetOwnId(String petOwnId) {
        this.petOwnId = petOwnId;
    }

    private Integer isPay;

    private Integer isTreat;

    private Integer doctorId;

    public Integer getPetId() {
        return petId;
    }

    public PetOwn getPetOwn() {
        return petOwn;
    }

    public void setPetOwn(PetOwn petOwn) {
        this.petOwn = petOwn;
    }

    @TableField(exist = false)
    private PetOwn petOwn;

    public void setPetId(Integer petId) {
        this.petId = petId;
    }
}
